package com.be.beadmin.quality.entity;

import com.be.beadmin.common.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;
/**
 * @Description: 检验单文件
 * @author: Jiaming Zheng
 * @Date: Create in 20:56 2023/5/15
 * @Modified By:
 **/
@Entity
@Table(name="T_QM_InspectionFileInfo")
@Getter
@Setter
public class InspectionFileInfo extends BaseEntity{

    @Column(name = "InspectionType",columnDefinition = "VARCHAR(255) COMMENT '检验类型' ")
    private String inspectionType;

    //根据检验类型使用对应标识字段
    //柜体入厂检验
    @Column(name = "ProductQualityId",columnDefinition = "VARCHAR(255) COMMENT '入厂检id' ")
    private String productQualityId;


    @Column(name = "InspectionTaskId",columnDefinition = "VARCHAR(255) COMMENT '检验单id' ")
    private String inspectionTaskId;
    //过程检验检验
    @Column(name = "ProductManufactInforId",columnDefinition = "VARCHAR(255) COMMENT '生产工序id' ")
    private String productManufactInforId;


    // 文件相关字段
    @Column(name = "FileUrl",columnDefinition = "text COMMENT '文件链接' ")
    private String fileUrl;

    @Column(name = "InspectionFileCode",columnDefinition = "VARCHAR(50) COMMENT '文件编码'")
    private String inspectionFileCode;

    @Column(name = "InspectionFileName",columnDefinition = "VARCHAR(255) COMMENT '文件名称'")
    private String inspectionFileName;

    // bucketname : inspectionfile
    @Column(name = "bucketName",columnDefinition = "VARCHAR(255) COMMENT 'MinIO中的bucketName' ")
    private String bucketName;

    @Column(name = "UploaderId",columnDefinition = "VARCHAR(50) COMMENT '上传人id' ")
    private String uploaderId;

    @Column(name = "UploaderName",columnDefinition = "VARCHAR(50) COMMENT '上传人' ")
    private String uploaderName;

    @Column(name = "UploadTime",columnDefinition = "datetime COMMENT '上传时间' ")
    private Date uploadTime;
}






